import api from '../../api'

export default {
    namespaced: true,
    state: {
        detail: {},
    },
    mutations: {
        set_detail(state, payload) {
            state.detail = payload;
        }
    },
    actions: {
        getDetail(context, data) {
            api.getTagList(data).then(res => {
                if (res.success) {
                    // 返回当前详情分类
                    context.commit('set_detail', res.data);
                }
            })
        }
    }
}